using Storyteller.Framework.Math;

namespace Storyteller.Framework.Input
{
	public class Mouse
	{
		public enum Button
		{
			Left = 0,
			Right,
			Middle,
			Button4,
			Button5,
			Button6
		}

		public static Point GetPosition()
		{
			return Game.Instance.MouseState.Position;
		}

		public static bool IsButtonDown(Button button)
		{
			return Game.Instance.MouseState.Buttons[(int)button];
		}

		public static int GetScrollWheelValue()
		{
			return Game.Instance.MouseState.ScrollWheelValue;
		}
	}

	public class MouseState
	{
		public bool[] Buttons;
		public Point Position;
		public int ScrollWheelValue;

		public MouseState()
		{
			Buttons = new bool[System.Enum.GetValues(typeof(Mouse.Button)).Length];
		}
	}
}
